home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Next Step: Mars?
/
Next Step Mars (1994)(IVI).iso
/
pssword.dir
/
00045_Script_45
< prev
Wrap
Text File
|
1994-11-28
|
782b
|
27 lines
on passKeyDown
--We have hacked around the editable field of password
-- and I put all the characters in myself
SET THE TEXTFONT OF FIELD "PASSWORD" TO "ARIAL"
SET THE TEXTSIZE OF FIELD "PASSWORD" TO 36
SET THE TEXTSTYLE OF FIELD "PASSWORD" TO "BOLD"
SET THE FORECOLOR of cast "PASSWORD" to 5
SET THE BACKCOLOR of cast "PASSWORD" to 255
if the key = BACKSPACE then -- delete last char and exit
put the number of chars in field "PASSWORD" into numChars
put chars(field "PASSWORD",1,numChars-1) into field "PASSWORD"
exit
end if
-- else put char on screen
put field "PASSWORD"&the key into field "PASSWORD"
if the key = RETURN or the key = ENTER then
go to frame "ENTER"
end if
updateStage
end